package com.hyk.mapper;

import com.hyk.entity.Address;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 地址表 Mapper 接口
 * </p>
 *
 * @author hyk
 * @since 2021-03-23
 */
public interface AddressMapper extends BaseMapper<Address> {

    Address selectUserDefaultAddress(@Param("id") long id);

    void clearAddressDefault(@Param("user_id") String user_id);

    void addAddressDefault(@Param("user_id") String user_id, @Param("id") String id);
}
